import request from '@/utils/request'

// 查询部门下拉树结构
export function regionTreeSelect() {
  return request({
    url: '/system/user/regionTree',
    method: 'get'
  })
}

// 查询设备列表
export function listTerminal(query) {
  return request({
    url: '/equipment/terminal/list',
    method: 'get',
    params: query
  })
}

// 修改设备
export function updateTerminal(data) {
  return request({
    url: '/equipment/terminal/edit',
    method: 'put',
    data: data
  })
}

// 添加设备
export function addTerminal(data) {
  return request({
    url: '/equipment/terminal/add',
    method: 'put',
    data: data
  })
}